<!-- 检测项目 -->
<template>
	<view class="page">
		<cu-custom bgColor="bg-white" :isBack="true">
			<block style="color: #777777;font-size: 48rpx;" slot="content">检测项目A</block>
		</cu-custom>

		<form>
			<view class="cu-form-group margin-top">
				<view class="title">总数</view>
				<input v-model="m1" placeholder="总数" name="input"></input>
			</view>
			<view class="cu-form-group">
				<view class="title">不合格数量</view>
				<input v-model="m2" placeholder="不合格数量" name="input"></input>
			</view>
			<view class="cu-form-group">
				<view class="title">简述检测情况</view>
				<input v-model="m3" placeholder="简述检测情况" name="input"></input>
			</view>
			<view class="cu-form-group">
				<view class="title">不合格数比例</view>
				<input v-model="m4" placeholder="不合格数比例" name="input"></input>
			</view>
			<view class="cu-form-group">
				<view class="title">单项判定</view>
				<input v-model="m5" placeholder="单项判定" name="input"></input>
			</view>
			<view class="cu-form-group">
				<view class="title">设备状态</view>
				<input v-model="m6" placeholder="设备状态" name="input"></input>
			</view>
		</form>

		<view class="padding flex flex-direction">
			<button class="cu-btn margin-tb-sm lg my-btn" @tap="submit">完成</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {
			submit() {
				let params = {
					"location": this.address,
					"ucId": this.submitId
				}
				// 生成报警信息
				let app = getApp()
				app.globalData.request({
					url: '/wx/firealarm/confirmFire',
					data: {
						...params
					}
				}).then(function(res) {
					let data = res.data.code
					if (data == 0) {
						uni.showToast({
							title: "报警成功"
						})
						uni.navigateBack({
							delta: 2
						});
					}

				}).catch(function(e) {})
			},
		}
	}
</script>

<style scoped>

</style>
